package org.springforge.ldap.service;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;

import javax.naming.NamingException;

import org.springforge.ldap.user.User;

public interface LdapService {
	
	public void create(String email, String pwd, String firstname, String lastname) throws NamingException;
	public void update(String mail, String email, String pwd, String firstname,String lastname) throws NamingException,NoSuchAlgorithmException,UnsupportedEncodingException;
	public String getPassword(String email) throws NamingException;
	public String getFirstName(String email)throws NamingException;
	public String getLastName(String email)throws NamingException;
	public void delete(String email)throws NamingException;
	public User getUser(String email)throws NamingException;//TODO implements it and try to fix getObjectFactory
	public boolean authenticate(String username, String password);
	public String getDestList() throws NamingException;
}
